package com.trxy.hotelsystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.trxy.hotelsystem.dao.repertoryMapper;
import com.trxy.hotelsystem.model.repertory;
import com.trxy.hotelsystem.service.RepertoryService;

@Service
public class RepertoryServiceImpl implements RepertoryService{
	
	@Autowired
	private repertoryMapper repertorymapper;

	@Override
	public List<repertory> queryRepertoryAll() {
		// TODO Auto-generated method stub
		return repertorymapper.queryRepertoryAll();
	}

	@Override
	public List<repertory> selectRepertoryByName(repertory repertory) {
		// TODO Auto-generated method stub
		return repertorymapper.selectRepertoryByName(repertory);
	}

	@Override
	public List<repertory> selectRepertoryByClassify(repertory repertory) {
		// TODO Auto-generated method stub
		return repertorymapper.selectRepertoryByClassify(repertory);
	}

	@Override
	public List<repertory> selectRepertoryById(repertory repertory) {
		// TODO Auto-generated method stub
		return repertorymapper.selectRepertoryById(repertory);
	}

	@Override
	public int addReper(repertory repertory) {
		// TODO Auto-generated method stub
		return repertorymapper.addReper(repertory);
	}

	@Override
	public int stockRemoval(repertory repertory) {
		// TODO Auto-generated method stub
		return repertorymapper.stockRemoval(repertory);
	}

	@Override
	public int updateRepertoryById(repertory repertory) {
		// TODO Auto-generated method stub
		return repertorymapper.updateRepertoryById(repertory);
	}

	@Override
	public int addRepertory(repertory repertory) {
		// TODO Auto-generated method stub
		return repertorymapper.insertSelective(repertory);
	}

}
